<?php echo anchor('admin/tbl_coupon/add','Add Coupon');?>
<br>
<?php echo anchor('admin/front','back');?>
<?php echo form_open('admin/tbl_coupon/delete');?>
<table class="standard-table">
    <tr>
        
        <th>ID</th>
       
        
        <th>Coupon Code</th>
        
        <th>Start Date</th>
        
        <th>Expired Date</th>
        
        <th>Coupon Type</th>
        
        <th>Coupon Value</th>
        
        <th>Limit Coupon Used</th>
        
        <th>Minimum Price For Coupon</th>
        
        <th>Categories Product</th>
        
        <th>Action</th>

    </tr>
    <?php foreach ($tbl_coupons as $tbl_coupon) { ?>

        <tr>
            <th><?php echo form_checkbox('id[]',$tbl_coupon['id']).$tbl_coupon['id']; ?></th>

             
            <th><?php echo $tbl_coupon['coupon_code']; ?></th>
           
            <th><?php echo $tbl_coupon['start_date']; ?></th>
           
            <th><?php echo $tbl_coupon['expired_date']; ?></th>
           
            <th><?php echo $tbl_coupon['jenis_coupon']; ?></th>
           
            <th><?php echo $tbl_coupon['nilai_coupon']; ?></th>
           
            <th><?php echo $tbl_coupon['limit_coupon_used']; ?></th>
           
            <th><?php echo $tbl_coupon['minimum_price']; ?></th>
           
            <th><?php echo $tbl_coupon['cat_product']; ?></th>
           
            <th><a href="<?php echo site_url().'admin/tbl_coupon/form_update/'.$tbl_coupon['id'].'.exe';?>" >Edit</a>
        </tr>
 
<?php } ?>
</table>
<?php echo $pagination; ?>
<br>
<input type="submit" value="delete" onclick="return confirm('are you sure ?');">

<?php echo form_close();?>